import axios from "@/utils/request.js";

// 获取房产分类信息
export const getCategorys = () => {
  return axios({
    url: "/categories",
  });
};

// 获取房产分类具体信息
export const getCategorysDetail = (id) => {
  return axios({
    url: `/categories/${id}`,
  });
};
// 获取房产具体信息
export const getProperties = (id) => {
  return axios({
    url: `/properties/${id}`,
  });
};

// 获取房产搜索内容
export const getPropertiesDetail = (params) => {
  return axios({
    url: "/properties",
    params,
  });
};
